import ajax from '@/utils/ajax'

export async function Login(params: any) {
    return ajax({
        url: '/user/login',
        method: 'POST',
        data: params
    });
}

/**
 * 创建验证码--UUID
 * @constructor
 */
export async function CaptchaCreate() {
    return ajax({
        url: '/captcha/create',
        method: 'GET',
    });
}

/**
 * 根据UUID生成二维码
 * @param params
 * @constructor
 */
export async function CaptchaImg(params: any) {
    return ajax({
        url: `/captcha/img/${params}`,
        method: 'GET',
    });
}
